package org.lalib.util;

import javax.faces.application.FacesMessage;
import javax.faces.application.FacesMessage.Severity;
import javax.faces.context.FacesContext;

import org.springframework.stereotype.Component;

@Component("messageUtil")
public class MessageUtil {

	public void addMessage(Severity severity, String title, String message) {
		FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(severity, title, message));
	}
}